<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<title>功能</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link rel="stylesheet" type="text/css"
			href="css/style.css" />
	</head>

	<body>
		<div id="wrap">
			<div id="top_content">
					<div id="header">
						<div id="rightheader">
							<p>
								<span v-text="date"></span>
								<br />
								<a href="javascript:;" @click="logout">安全退出</a>
							</p>
						</div>
						<div id="topheader">
							<h1 id="title">
								<a href="/ems_vue/emplist.html">返回首页</a>
							</h1>
						</div>
						<div id="navigation">
						</div>
					</div>
				<div id="content">
					<p id="whereami">
					</p>
					<h1>
						操作:
					</h1>
					<form action="emplist.html" method="post">
						<table cellpadding="0" cellspacing="0" border="0"
							class="form_table">
							<tr>
                                <td valign="middle" align="left">
									
								</td>
								<td valign="middle" align="right">
									<input type="button" @click="salaryN" class="button" value="工资详情" />
								</td>
								<td valign="middle" align="left">
									<input type="button" @click="salaryD" class="button" value="工资浮动部分" />
								</td>
								<td valign="middle" align="right">
									<input type="button" @click="kaoqinS" class="button" value="考勤" />
								</td>
							</tr>
						</table>
						<p>
							<input type="button" @click="fanhui" class="button" value="返回列表" />
						</p>
					</form>
				</div>
			</div>
			<div id="footer">
				<div id="footer_bg">
					ranlen@cl.com
				</div>
			</div>
		</div>
	</body>
</html>
<script src="js/vue.js"></script>
<script src="js/axios.min.js"></script>
<script>
	var app = new Vue({
		el:"#wrap",
		data:{
			date:"2022/6"
		},
		methods:{
			logout(){
				axios.get("http://localhost:8989/ems_vue/user/logout").then(res=>{});
				sessionStorage.removeItem("token");
				location.href = "/ems_vue/login.html";
			},
			salaryN(){//工资详情
				location.href = "/ems_vue/salary.html";
			},
			salaryD(){//工资浮动部分
				location.href = "/ems_vue/Money.html";
			},
			kaoqinS(){//考勤
				location.href = "/ems_vue/kaoqin.html";
			},
			fanhui(){//返回列表
				location.href = "/ems_vue/emplist.html";
			}
		},
		created(){
		}
	})
</script>